module ApplicationHelper

  # Return a title on a per-page basis.
  def title
    base_title = "RailsShop"
    if @title.nil?
      base_title
    else
      "#{base_title} | #{@title}"
    end
  end

  def modify_icon
    image_tag("pencil.png", :alt => "Bearbeiten")
  end

  def delete_icon
    image_tag("delete.png", :alt => "Lo&uml;schen")
  end

end
